﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _12._3
{
    internal class Program
    {
        static void Main(string[] args)
        {

            Dictionary<string,int> thisgs = new Dictionary<string,int>();

            thisgs.Add("a1", 1);
            thisgs.Add("a2", 2);
            thisgs.Add("z2", 3);
            thisgs.Add("z1", 4);

            foreach (string key in thisgs.Keys)
            {
                Console.WriteLine($"{key}");
            }
            foreach (int v in thisgs.Values)
            {
                Console.WriteLine($"{v}");
            }

            foreach (KeyValuePair<string, int> v in thisgs)
            {
                Console.WriteLine($"{v.Key}:{v.Value}");
            }

            Console.ReadKey();
        }
    }
}
